package com.itwn.mapper;

import com.itwn.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer uId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer uId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    @Select("select * from _user where u_name=#{name} and u_password=#{pass}")
    User selUserByNameAndPass(@Param("name") String name,@Param("pass") String pass);

    @Select("select * from _user")
    List<User> SelAll();
}